import request from '@/utils/request'
import type {  DocListParams } from '@/types/doclist'

const BASE_URL = "/api/v1/pdf"

/**
 * 获取文档列表
 * @param params 查询参数
 * @returns 文档列表数据
 */
export const getDocList = (params: DocListParams) => {
  return request<any, PageResult<DocData[]>>({
    url: `${BASE_URL}/doc_list`,
    method: 'get',
    params: params
  })
}
